import request from '@/router/axios'
import { baseUrl } from '@/config/env'

// 添加党校信息
export function addPartySchool(data) {
    return request({
        url: baseUrl + '/pc/party-school',
        method: 'post',
        data
    })
}

// 查询党校信息
export function getPartySchool(data) {
    return request({
        url: baseUrl + '/pc/party-school',
        method: 'get',
        params: data
    })
}

// 更新党校信息
export function updatePartySchool(data) {
    return request({
        url: baseUrl + '/pc/party-school',
        method: 'put',
        data
    })
}

// 删除党校信息
export function deletePartySchool(data) {
    return request({
        url: baseUrl + '/pc/party-school',
        method: 'delete',
        data
    })
}
